package game.ouroboros.temp;

import game.ouroboros.enemy.Enemy;
import game.ouroboros.traps.Trap;

public class GenericTrap extends Trap {
	public static final float SIZE_WIDHT=20;
	public static final float SIZE_HEIGHT=20;
	public static final float RANGE_WIDHT_FROM_CENTER=40;
	public static final float RANGE_HEIGHT_FROM_CENTER=40;
	protected float stateTime;
	
	public static final int STATE_SEARCHING=1;
	public static final int STATE_RELOADING=2;
	public static final int STATE_WORKING=3;
	
	protected static final int TIME_RELOADING=1000;//em milissegundos
	protected float time;
	
	public  int state; 
	
	public GenericTrap(float x, float y) {
		super(x, y, SIZE_WIDHT, SIZE_HEIGHT);
		state = STATE_SEARCHING;
		this.bounds.height = RANGE_HEIGHT_FROM_CENTER;
		this.bounds.width  = RANGE_WIDHT_FROM_CENTER;
		stateTime = 0;
	}
 
	@Override
	public void update(float dealtatime) {
		
	}
	 
	@Override
	public boolean funcionando() {
		return (state == STATE_SEARCHING);
	}

	@Override
	public boolean inCollisionRange(Enemy enemy) {
		// TODO Auto-generated method stub
		return false;
	}
	private int life;
	
	@Override
	public void attackedBy(Enemy enemy) {
		this.life -= enemy.damAtk;
		
	}
	

}
